from django.views.generic import DetailView, ListView, UpdateView, CreateView
from .models import news
from .forms import newsForm


class newsListView(ListView):
    model = news


class newsCreateView(CreateView):
    model = news
    form_class = newsForm


class newsDetailView(DetailView):
    model = news


class newsUpdateView(UpdateView):
    model = news
    form_class = newsForm

